package com.pandacase.test10.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xin.guo
 * @since 2019/9/18 18:05
 */
@RestController
@RequestMapping(value = "/api/test")
public class TestController {

    @GetMapping("/hello")
    public ResponseEntity<String> beat() {

        return ResponseEntity.ok().body("hello world");
    }
}
